package appapi.dao;
import appapi.entity.record.MonthdetailEntity;
import org.apache.ibatis.annotations.Param;

import org.apache.ibatis.annotations.Mapper;import java.util.List;
import java.util.Map;

/**
 * @author djq
 * @date 2023/5/23 17:43
 * @description:
 */

@Mapper
public interface MonthdetailMapper {
    int deleteByPrimaryKey(Long monthRecId);

    int insert(MonthdetailEntity record);

    int insertSelective(MonthdetailEntity record);

    MonthdetailEntity selectByPrimaryKey(Long monthRecId);

    int updateByPrimaryKeySelective(MonthdetailEntity record);

    int updateByPrimaryKey(MonthdetailEntity record);


    void insertList(List<MonthdetailEntity> addList);

    void insertListByDto(List<MonthdetailEntity> addList);

    List<Map<String, Object>> selectAllByMonthId(@Param("monthId")Long monthId);

    List<MonthdetailEntity> selectByMonthId(@Param("monthId")Long monthId);

    int deleteByMonthId(@Param("monthId")Long monthId);

    int deleteByMonthIdBatch(@Param("monthIds")List<Long> monthIds);
}